package com.sparrow.source.persistense.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sparrow.source.common.dto.UserVerifyLog;
import com.sparrow.source.persistense.IasUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author bryceyung
 * @since 2024/11/19
 */
@Repository
public interface IasUserMapper extends BaseMapper<IasUser> {

    IasUser getByUid(@Param("uid") Integer uid);

    /**
     * 分页查询
     *
     * @param uid
     * @param name
     * @param tel
     * @param page
     * @return
     */
    Page<IasUser> selectWithParam(@Param("uid") Integer uid, @Param("name") String name,@Param("tel") String tel,
            Page<IasUser> page);

    List<UserVerifyLog> selectDetailInfoByUid(@Param("uid") Integer uid,@Param("limit") Integer limit);

    IasUser selectByUserOrPersonId(@Param("userId") Long userId);
}
